﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Wy.JiZhangSoft.Migrations
{
    public partial class update_LeiJiZhiChuStatistics_day : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Show",
                table: "JiZhang_Notes",
                type: "varchar(70) CHARACTER SET utf8mb4",
                maxLength: 70,
                nullable: true,
                oldClrType: typeof(string),
                oldType: "longtext CHARACTER SET utf8mb4",
                oldNullable: true);

            migrationBuilder.AlterColumn<DateTime>(
                name: "Day",
                table: "JiZhang_LeiJiZhiChuStatistics",
                type: "datetime(6)",
                maxLength: 20,
                nullable: false,
                oldClrType: typeof(string),
                oldType: "varchar(20) CHARACTER SET utf8mb4",
                oldMaxLength: 20);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Show",
                table: "JiZhang_Notes",
                type: "longtext CHARACTER SET utf8mb4",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "varchar(70) CHARACTER SET utf8mb4",
                oldMaxLength: 70,
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "Day",
                table: "JiZhang_LeiJiZhiChuStatistics",
                type: "varchar(20) CHARACTER SET utf8mb4",
                maxLength: 20,
                nullable: false,
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldMaxLength: 20);
        }
    }
}
